package com.cea.papyrus.diagram.composite.figure;

import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.swt.SWT;

import com.cea.papyrus.core.figures.ElementFigure;

/**
 * Figure For provided interfaces. (circle)
 */
public class ProvidedInterfaceFigure extends ElementFigure {
	
	/* (non-Javadoc)
	 * @see com.cea.papyrus.common.figures.NodeFigure#paintFigure(org.eclipse.draw2d.Graphics)
	 */
	@Override
	public void paintFigure(Graphics graphics) {
		graphics.pushState();
		graphics.setAntialias(SWT.ON);
		graphics.setLineWidth(2);
		Rectangle area = getBounds();
				
		
		graphics.drawOval(area.x+2, area.y+2, area.width-4, area.height-4);
		graphics.popState();
	}

}
